package day04;

import java.util.Scanner;

public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请选择功能：1.存款 2.取款 3.转账 4.退出");
        int cammand = scan.nextInt();
        switch (cammand){
            case 1:
                System.out.println("存款");
                break;
            case 2:
                System.out.println("取款");
                break;
            case 3:
                System.out.println("转账");
                break;
            case 4:
                System.out.println("退出");
                break;
            default:
                System.out.println("输入错误");
        }













       /* Scanner scan=new Scanner(System.in);
        System.out.println("请输入你的年龄");
        int age=scan.nextInt();
        System.out.println("请输入商品价格");
        double price=scan.nextDouble();
        System.out.println("你的年龄是"+age+",商品价格是"+price);

        */

    }
}
